/*
 * @Author: duchengdong
 * @Date: 2021-12-27 16:00:20
 * @LastEditors: lizhen
 * @LastEditTime: 2021-12-29 15:36:53
 * @Description:
 */
import {requestAuth} from '@/request/request'

// 获取用户信息
export async function getUserInfoApi() {
	const url = `/app/patient/info`
	let res = await requestAuth({
		url,
		method: 'GET',
	})
	return res
}

// 用户信息更新接口
export async function editUserInfoApi(data) {
	const url = `/app/patient/save`
	let res = await requestAuth({
		url,
		method: 'POST',
		data,
	})
	return res
}

// 手机号绑定接口
export async function bindPhoneApi(data) {
	const url = `/maopen/user/bind_phone?mobile=${data}`
	let res = await requestAuth({
		url,
		method: 'POST',
	})
	return res
}

// 获取医生信息接口
export async function getDoctorInfoApi() {
	const url = `/app/doctor/myDoctor`
	let res = await requestAuth({
		url,
		method: 'GET',
	})
	return res
}
